package com.zhiy.com.estation.ui.fragment.register;

import com.zhiy.com.estation.api.ApiResult;
import com.zhiy.com.estation.ui.base.BaseModel;
import com.zhiy.com.estation.ui.base.BasePresenter;
import com.zhiy.com.estation.ui.base.BaseView;

import io.reactivex.Flowable;

/**
 * Created by Zyh on 2016/12/3.
 */
public interface RegisterContract {
    public interface Model extends BaseModel {
        //进行网络请求的操作
        Flowable<ApiResult> regist(String name, String password);
    }

    public interface View extends BaseView {
        void isRegisterSuccess();
        void isFailure();
        void showMsg(String msg);
    }

    public abstract class Presenter extends BasePresenter<Model, View> {
        public abstract void regist(String name, String password);
    }

}
